package pimp.organizermanager;

import java.util.*;

public class Day {
    private List<Event> events;
    private int thisDay;

    public Day(int day) {
        events = new ArrayList<Event>();
        thisDay = day;
    }

    public Map<ID, GlobalEvent> getGlobalEvent(Map<ID, GlobalEvent> map) {
        for(int i = 0; i < events.size(); ++i) {
            Event event = events.get(i);
            map.put(event.getId(), event);
        }
        return map;
    }

    public boolean addEvent(Event event) {
        events.add(event);
        event.addDay(this);
        return true;
    }

    @Override
    public String toString()
    {
        String out = new String();
        return out;
    }

    public int getThisDay() {
        return thisDay;
    }
}
